package com.bkhech.boot.sample.mvc.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @author guowm
 * @date 2023/1/10
 */
@RestController
public class DemoController {

    @PostMapping("/hello")
    public String hello(String param) throws IOException {
        return param + ", hello";
    }

    @PostMapping("/demo")
    public String demo(String param) {
        return param + ", demo";
    }

}
